using System;
using Domain.Core;
using Domain.Model.Banks;
using Domain.Model.Partners;

namespace Domain.Model.BankAccounts
{
    public class BankAccount : ValueObject
    {
        public string Number { get; set; }
        public BankAccountType Type { get; set; }
        public string Currency { get; set; }

        public DateTime? CreatedOn { get; set; }
        public DateTime? UpdatedOn { get; set; }

        public virtual Bank Bank { get; set; }

        #region ToString implementation
        public override string ToString()
        {
            return String.Format("{0} - {1} {2}", Bank.Name, Currency, Number);
        } 
        #endregion
    }
}